package com.yang.springcloudalibaba.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "nacos-provider-student-menu")
public interface MenuClientService {
    @PostMapping("/queryMenu")
    public Map<String, Object> queryMenu(@RequestParam(name = "menuid") int menuid);

    @PostMapping("/queryRoleMenu")
    public Map<String, Object> queryRoleMenu(@RequestParam(name = "menuid") int menuid, @RequestParam(name = "roleid") int roleid);

    @PostMapping("/insertRoleMenu")
    public Map<String, Object> insertRoleMenu(@RequestParam(name = "roleid") int roleid, @RequestParam(name = "menuid") String menuStr);
}
